import request from '@/utils/request'

export function list(token,data){
  return request({
    url: 'order/order/select',
    method: 'post',
    params: {token},
    data
  })
}

// 添加店铺(store)
export function add(token,data){
  return request({
    url: 'order/order/add',
    method: 'post',
    params: {token},
    data
  })
}

// 编辑店铺(store)
export function edit(token,data){
  return request({
    url: 'order/order/edit',
    method: 'post',
    params: {token},
    data

  })
}

// 删除店铺(store)
export function del(token,order_id) {
  return request({
    url: 'order/order/delete',
    method: 'post',
    params: {token},
    data: {order_id}
  })
}
